<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: acer
  Date: 2018/12/17
  Time: 18:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>内容信息显示</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script src="/static/js/jquery-3.3.1.js"></script>
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
    <script src="/static/layuiadmin/layui/layui.js" charset="utf-8" type="text/javascript"></script>
</head>
<body>
<div style="margin-bottom: 5px;">
    <ins class="adsbygoogle" style="display:inline-block;width:970px;height:50px"
         data-ad-client="ca-pub-6111334333458862" data-ad-slot="3820120620"></ins>
</div>

<table class="layui-hide" id="idTest" lay-filter="demo"></table>


<script>
    layui.use('table', function () {
        var $ = layui.$;
        var table = layui.table;
        //执行一个 table 实例
        table.render({
            elem: '#idTest',
            url: 'selectContentByCaid?caid=' + "${caid}",   //数据接口
            title: '',
            page: false,
            limit: 10,
            limits: [10, 20, 30, 40, 50],
            cols: [[ //表头
                {type: 'numbers', title: '序号', align: 'center', width: 100}
                , {field: 'cid', title: '内容ID', sort: true, align: 'center', hide: true}
                , {field: 'creationtime', title: '创建时间', sort: true, align: 'center'}
                , {field: 'releasetime', title: '发布时间', sort: true, align: 'center'}
                , {field: 'theme', title: '内容主题', sort: true, align: 'center'}
                , {field: 'crowd', title: '发布人群', sort: true, align: 'center'}
                , {field: 'state', title: '状态', sort: true, align: 'center'}

            ]]
            , id: "test"
        });
    });


</script>

</body>
</html>
